package com.cap.bts.crmdp.dealer.coupon.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;


/**
 * The persistent class for the TM_RAW_COUPON database table.
 * 
 */
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="TM_RAW_COUPON_REDEEM")
public class CouponRedeem extends BaseDomain implements Serializable {
    
	private static final long serialVersionUID = 1L;

	private Long id;

    private Long couponId;

	private String couponNumber;

	private Long redeemMemberCarId;
	private String redeemMemberCarPlate;

	private Long redeemMemberId;

	private String redeemMemberName;

	private String redeemMemberPhone;
	private Long redeemDealerId;
	private Date redeemDate;

	
	//for MARS
	private String marsLockStatus;
	private String soNumberRedeem;
	private String soNumberSettle;
	private String soNumberCancel;
	
	
    
	public CouponRedeem() {
    }

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
  

    @Column(name="COUPON_NUMBER")
    public String getCouponNumber() {
        return this.couponNumber;
    }

    public void setCouponNumber(String couponNumber) {
		this.couponNumber = couponNumber;
	}


	   @Temporal(TemporalType.DATE)
	    @Column(name="REDEEM_DATE")
	public Date getRedeemDate() {
		return this.redeemDate;
	}

	public void setRedeemDate(Date redeemDate) {
		this.redeemDate = redeemDate;
	}

	@Column(name="REDEEM_DEALER_ID")
	public Long getRedeemDealerId() {
		return this.redeemDealerId;
	}

	public void setRedeemDealerId(Long redeemDealerId) {
		this.redeemDealerId = redeemDealerId;
	}

	@Column(name="REDEEM_MEMBER_ID")
	public Long getRedeemMemberId() {
		return this.redeemMemberId;
	}

	public void setRedeemMemberId(Long redeemMemberId) {
		this.redeemMemberId = redeemMemberId;
	}

	@Column(name="REDEEM_MEMBER_NAME")
	public String getRedeemMemberName() {
		return this.redeemMemberName;
	}

	public void setRedeemMemberName(String redeemMemberName) {
		this.redeemMemberName = redeemMemberName;
	}

	@Column(name="REDEEM_MEMBER_PHONE")
	public String getRedeemMemberPhone() {
		return this.redeemMemberPhone;
	}

	public void setRedeemMemberPhone(String redeemMemberPhone) {
		this.redeemMemberPhone = redeemMemberPhone;
	}

	@Column(name="MARS_LOCK_STATUS")
	public String getMarsLockStatus() {
		return marsLockStatus;
	}

	public void setMarsLockStatus(String marsLockStatus) {
		this.marsLockStatus = marsLockStatus;
	}

	@Column(name="SO_NUMBER_REDEEM")
	public String getSoNumberRedeem() {
		return soNumberRedeem;
	}

	public void setSoNumberRedeem(String soNumberRedeem) {
		this.soNumberRedeem = soNumberRedeem;
	}

	@Column(name="SO_NUMBER_SETTLE")
	public String getSoNumberSettle() {
		return soNumberSettle;
	}

	public void setSoNumberSettle(String soNumberSettle) {
		this.soNumberSettle = soNumberSettle;
	}

	@Column(name="SO_NUMBER_CANCEL")
	public String getSoNumberCancel() {
		return soNumberCancel;
	}

	public void setSoNumberCancel(String soNumberCancel) {
		this.soNumberCancel = soNumberCancel;
	}

	@Column(name="COUPON_ID")
	public Long getCouponId() {
		return couponId;
	}

	public void setCouponId(Long couponId) {
		this.couponId = couponId;
	}

	@Column(name="REDEEM_MEMBER_CAR_ID")
	public Long getRedeemMemberCarId() {
		return redeemMemberCarId;
	}

	public void setRedeemMemberCarId(Long redeemMemberCarId) {
		this.redeemMemberCarId = redeemMemberCarId;
	}

	@Column(name="REDEEM_MEMBER_CAR_PLATE")
	public String getRedeemMemberCarPlate() {
		return redeemMemberCarPlate;
	}

	public void setRedeemMemberCarPlate(String redeemMemberCarPlate) {
		this.redeemMemberCarPlate = redeemMemberCarPlate;
	}

	
	
}